<template>
	<view class="centair">
		<!-- <a href="hbuilder://{'url':'index.html'}">调起测试APP</a><br/><br/> -->
		<!-- <a href="yph://{'url':''}">调起APP</a><br/><br/> -->
		<!-- <button @click="gototest">调起测试APP</button> -->
		<button class="buttons" @click="goto">进入直播间</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				roomid:0,
				hrefs:''
			}
		},
		onLoad(params) {
			this.roomid = params.roomid
			
		},
		methods: {
			goto(){
				window.location.href="yph://{'url':'&"+this.roomid+"&'}";
			},
			gototest(){
				window.location.href="hbuilder://{'url':'&"+this.roomid+"&'}";
			}
		}
	}
</script>

<style lang="scss">
	.centair{
		.buttons{
			width: 50%;
		}
	}
	
</style>
